//
//  NetWorkingManager+Public.m
//  绿地管理系统
//
//  Created by rimi on 16/1/20.
//  Copyright © 2016年 hexs. All rights reserved.
//

#import "NetWorkingManager+Public.h"

@implementation NetWorkingManager (Public)

+ (void)loginWithUsername:(NSString *)username
                 password:(NSString *)password
           successHandler:(SuccessBlock)success
              failureHandler:(FailureBlock)failure
{
    NSDictionary *params = @{@"c":@"login",@"user_name":username,@"password":password};
    params = [self paramsByAppendingBaseParams:params module:@"Public"];
    
    [self postWithUrl:BASE_URL params:params successHandler:success failureHandler:failure];
}

@end
